package v3.entity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class User {
    private Integer userId;

    @NotEmpty(message = "姓名不能为空")
    @Size(max = 16, message = "姓名应不超过16个字符")
    private String userName;
    @NotEmpty
    @Size(min=4,message="最小长度4个字符")
    private String userCode;
    @NotEmpty
    private String userPwd;

}
